import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule }          from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp }                  from './app.component';

import { TabsPage }               from '../pages/tabs/tabs';

import { StatusBar }              from '@ionic-native/status-bar';
import { SplashScreen }           from '@ionic-native/splash-screen';
import { HttpModule }             from '@angular/http';
import {IonicStorageModule}       from '@ionic/storage';
import { HttpProvider }           from '../providers/http/http';
import { HttpServiceProvider }    from '../providers/http-service/http-service';
import { UtilProvider }           from '../providers/util/util';

@NgModule({
  declarations: [
    MyApp,
    TabsPage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
        backButtonText: '',
        mode:'ios',
        tabsHideOnSubPages: true
    }),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    TabsPage,
  ],
  providers: [
    StatusBar,
    SplashScreen,
    HttpProvider,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    HttpServiceProvider,
    UtilProvider
  ]
})
export class AppModule {}
